home *** CD-ROM | disk | FTP | other *** search
- FUNNY_TEXT SEGMENT BYTE PUBLIC 'BOOTF'
- ASSUME CS:FUNNY_TEXT
- ASSUME DS:FUNNY_TEXT
-
- org 0
-
- go:
- mov si, offset xbooted
- call xouts_cs_si
-
- xor ah,ah ; wait for user press key
- int 16h
- ; try to boot the system again
- int 19h
-
-
- xoutch:
- mov ah,0eh
- mov bx,0007h
- int 10h
-
- xouts_cs_si:
- mov al,cs:[si]
- inc si
- or al,al ; end of string
- jnz xoutch
- ret
-
- xbooted:
- db 0Dh, 0Ah, 'I booted... press key', 0
-
- fill2: db (512-(offset FUNNY_TEXT:fill2-offset FUNNY_TEXT:go)) dup (0)
-
-
- FUNNY_TEXT ENDS
-
- END go
-
-